<?php include_once("header.html")?>
<script src="<?php echo $www_site_url?>/public/js/calendar.js" type="text/javascript"></script>
<div id="append"></div>
<div id="wrap">  <br />

<?php include_once("home_left.html")?>
<div class="admincontent">

<div id="tabsD" style="width:100%">
  <ul>
    <li <?php if($type=='assignment') echo 'class="on"';?>><a href="/client.php/home/assignment" title="<?php echo lang("assignment");?>"><span><?php echo lang("assignment");?></span></a></li>
    <li <?php if($type=='download') echo 'class="on"';?>><a href="/client.php/home/download" title="<?php echo lang("download");?>"><span><?php echo lang("download");?></span></a></li>

  </ul>
</div>
<br />
<br />
<br />

<div id="brandlist" style="width: 170px; border: 1px solid #B5CFD9; background:#fefefe;display:none; position:absolute;z-index:999;">

</div>

<div style="float:right;margin-right:10px;">
      <a href="javascript:showprintpage(1)"></a>
      </div>

<table width="100%" border="0" cellspacing="0" cellpadding="0" style="margin:10px 22px 10px 0;">
  <tr>
   <td class="table2LeftBorder"></td>
   <td class="table2TitleBg"></td>
   <td class="table2RightBorder"></td>
  </tr>
  <tr>
  <td class="table2LeftBorder"></td>
    <td>
    <!--startprint1-->
    <center><table width="100%" border="0" cellpadding="0" cellspacing="1" class="missionReport">
    	<tr  class="title" bgcolor="#9F0000">
    		<th><?php echo lang("finishedmonth");?></th>
    		<th><?php echo lang("fullreport");?></th>
			<th><?php echo lang("dataonly");?></th>
		</tr>
		<?php if(is_array($csvfiles) && !empty($csvfiles)){ 
			$n = 0;
			foreach($csvfiles as $key=>$val){
			$n ++;
		?>
      <tr align="center">
        <td><?php echo $key;?></td>	
        <td>
        	<a href="<?php echo $www_site_url?>/<?php echo $val['textfile'];?>"><?php echo lang("download");?></a>
        </td>
        <td>
        	<a href="<?php echo $www_site_url?>/<?php echo $val['datafile'];?>"><?php echo lang("download");?></a>
        </td>
      </tr>
      <?php 
      		}
		}?>

</table></center>
</td>
    <td class="table2RightBorder"></td>
  </tr>
<tr>
  <td class="table2BottomLeft"></td>
  <td class="table2Bottom"></td>
  <td class="table2BottomRight"></td>
</tr>
</table>

</div>

</div>


<?php include_once("footer.html")?>
